//
//  OosMultimediaQuery.m
//  Oos4ios
//
//  Created by Pablo Gonzalez on 4/4/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import "OosMultimediaQuery.h"
#import <oos4ios/ApiUrlProvider.h>

@implementation OosMultimediaQuery

+ (OosMultimediaQuery *) queryForServiceSlug:(NSString *)slug
{
	NSString *url = [[ApiUrlProvider provider].serviceMedia getUrl:slug, nil];
	OosMultimediaQuery *query = [[OosMultimediaQuery alloc] 
								 initWithFeedURL: [NSURL URLWithString: url]];
	return [query autorelease];
}

+(OosMultimediaQuery *)queryForServiceSlug:(NSString *)siteSlug 
                               andUserSlug:(NSString *)userSlug
{
    NSString *url = [[ApiUrlProvider provider].userServices 
                     getUrl: userSlug, siteSlug, @"media", nil];
	OosMultimediaQuery *query = [[OosMultimediaQuery alloc] 
								 initWithFeedURL: [NSURL URLWithString: url]];
	return [query autorelease];
}

@end
